package com.lrm.service;

import com.lrm.dao.VisitRepository;
import com.lrm.po.Visitor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName VisitorServiceImpl
 * @Description
 * @Author JY
 * @Date 2020/6/22 17:27
 **/
@Service
public class VisitorServiceImpl implements VisitorService {
    @Autowired
    private VisitRepository visitRepository;


    @Override
    public List<Visitor> findAll() {
        return visitRepository.findAll();
    }

    @Override
    public void saveVisitor(Visitor visitor) {
        visitRepository.save(visitor);
    }
}
